#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include "function recursion.h"
int main()
{
	unsigned int  n = 0;
	scanf("%u", &n);
	print(n);
	return 0;
}
void print(unsigned int x)
{
	if (x > 9)
	{
		print(x / 10);
	}
	printf("%d ", x % 10);
}